<?php
/**
 * Created by PhpStorm.
 * User: sunzexin
 * Date: 2018/3/14
 * Time: 10:22
 */

namespace App\Http\Traits;


use Illuminate\Http\Request;

trait SystemNotifyTrait
{
    use BaseTrait;

    // 分页大小
    protected $limit;
    // 显示状态
    protected $status;
    // 通知标题
    protected $title;
    // 系统通知ID
    protected $system_notify_id;


    public function __construct(Request $request)
    {
        $this->limit = $request->input('limit', 0);
        $this->status = $request->input('status', '');
        $this->title = $request->input('title', '');
        $this->system_notify_id = $request->input('system_notify_id', 0);
    }
}